package hk.ust.cse.comp4981;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.sql.Date;
import java.util.ArrayList;
import java.util.Timer;
import java.util.TimerTask;

import twitter4j.FilterQuery;
import twitter4j.StallWarning;
import twitter4j.Status;
import twitter4j.StatusDeletionNotice;
import twitter4j.StatusListener;
import twitter4j.TwitterException;
import twitter4j.TwitterStream;
import twitter4j.TwitterStreamFactory;

public class MyTweet{
	String text;
	String created_at;
	
	public MyTweet(){
		text = null;
		created_at = null;
	}
	
	public MyTweet(Status status) {
		this.created_at = status.getCreatedAt().toString();
		this.text = status.getText();
	}
	
	//for testing tf-idf
/*	public MyTweet(String time, String content) {
		this.created_at = time;
		this.text = content;
	} */
	
	public String getTime() {
		return created_at;
	}

	public String getText() {
		return text;
	}
	
	public void print() {
		System.out.println(created_at + " " + text);
	}
}